Fly off the right edge of an Asteroids screen and you come back on the left.That is one modulo per axis and then almost everybody stops there, and their ship teleports across instead of sliding across, because they wrapped the position and forgot the drawing.
A ship that is half off the right edge has to be visibly half on the left edge at the same instant, which means drawing it twice near a seam. In this one the wrong version runs beside the right one so you can watch the difference.
Then the payoff: the play area folds. Left edge onto right gives you a
cylinder, top edge onto bottom gives you a torus, and a torus has no edges at all. Your Asteroids screen was never a rectangle.
Game Shorts #4. One mechanic per video, then the full game in long form. Next up: rotation and thrust which is the rest of Asteroids.
|
Discover Google Gemini Spark, Google's p...
Your hero is only as interesting as the ...
Holafly is the global leader in eSIMs fo...
# How to Install GCC and G++ Compiler on...
Which AI certification should you actual...